home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / DemoText / MDemoText.cp < prev    next >
Encoding:
Text File  |  1996-04-03  |  1.5 KB  |  79 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. // MDemoText.cp
  3. // Copyright © 1985-96 by Apple Computer, Inc. All rights reserved.
  4. //----------------------------------------------------------------------------------------
  5.  
  6. #ifndef __UDEMOTEXT__
  7. #include "UDemoText.h"
  8. #endif
  9.  
  10. // MacApp
  11.  
  12. #ifndef __MACAPP__
  13. #include "MacApp.h"
  14. #endif
  15.  
  16. #if qDrag
  17.     #ifndef __UDRAGDROP__
  18.     #include "UDragDrop.h"
  19.     #endif
  20. #endif
  21.  
  22. #if qPowerTalk
  23.     #ifndef __UMAILER__
  24.     #include "UMailer.h"
  25.     #endif
  26. #endif
  27.  
  28. #if UsingDemoTextPrinting
  29. #    ifndef __UPRINTING__
  30. #    include "UPrinting.h"
  31. #    endif
  32. #endif
  33.  
  34. #ifndef __USECTIONMGR__
  35. #include "USectionMgr.h"
  36. #endif
  37.  
  38. #ifndef __UTEVIEW__
  39. #include "UTEView.h"
  40. #endif
  41.  
  42.  
  43. //----------------------------------------------------------------------------------------
  44. // main: 
  45. //----------------------------------------------------------------------------------------
  46. #pragma push
  47. #pragma processor 68000
  48. #pragma segment Main
  49.  
  50. void main()
  51. {
  52.     InitUMacApp(6);                             // Initialize MacApp; 6 calls to MoreMasters
  53.  
  54. #if UsingDemoTextPrinting
  55.     InitUPrinting();
  56. #endif
  57.  
  58.     InitUTEView();
  59. #if qPowerTalk
  60.     if (HasAOCEToolBox())
  61.         InitUMailer();
  62. #endif
  63. #if qDrag
  64.     if (HasDragManager())
  65.         InitUDragManager();
  66. #endif
  67.  
  68.     TDemoTextApplication* gDemoTextApplication = new TDemoTextApplication;
  69.     gDemoTextApplication->IDemoTextApplication();
  70.     gDemoTextApplication->Run();
  71. } // main 
  72.  
  73. #pragma pop
  74.  
  75. //----------------------------------------------------------------------------------------
  76. // End of MDemoText.cp
  77.  
  78. #pragma segment Inline
  79.